package com.neusoft.neuiotms.dcom.repository.hn;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.enums.HnInspectionCategory;
import com.neusoft.neuiotms.dcom.model.hn.HnInspectionItem;

public interface HnInspectionItemRepository
        extends JpaRepository<HnInspectionItem, Long>, CustomizedHnInspectionItemRepository {

    HnInspectionItem findByCategoryAndItemTypeAndItem(HnInspectionCategory category, String itemType, String item);

    HnInspectionItem findByItemTypeAndItem(String itemType, String item);

    List<HnInspectionItem> findByPlansId(Long id);

    List<HnInspectionItem> findByHealthPlansId(Long id);
}
